From: Ole Streicher Date: Mon, 26 Dec 2016 17:33:56 +0000 (+0000) Subject: fix_wrong_index_type X-Git-Tag: archive/raspbian/0.11.1-2+rpi1~2^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=f88f9a062de08df2eab431c1ba77a1b26ceb6ca6;p=statsmodels.git fix_wrong_index_type Descrption: Fix index type in `reshape` to be integer. This will avoid FTBFS with numpy >= 1.12 beta Gbp-Pq: Name fix_wrong_index_type.patch --- diff --git a/statsmodels/genmod/generalized_estimating_equations.py b/statsmodels/genmod/generalized_estimating_equations.py index df852f3..8e33ac8 100644 --- a/statsmodels/genmod/generalized_estimating_equations.py +++ b/statsmodels/genmod/generalized_estimating_equations.py @@ -2392,7 +2392,7 @@ class NominalGEEResults(GEEResults): exog_names = [x.split("[")[0] for x in exog_names] params = np.reshape(self.params, - (ncut, len(self.params) / ncut)) + (ncut, len(self.params) // ncut)) for ev in exog_values: